# coding=utf-8
from framework.base_page import BasePage

class InquiryDetailsPage(BasePage):
    btn_chating = "xpath=>//*[@id='root']/div/div/div/div[2]/div/div/div[2]/div/div/div[2]/div/div[3]/div[1]/div[2]/div[1]/div/div[2]/div/div/div[2]/div[2]"
    bt_chating_back = "xpath=>//*[@id='root']/div/div/div/div[2]/div/div/div[2]/div/div[2]/div/div/div[1]/img"
    btn_continue_inquiry ="xpath=>//*[@id='root']/div/div/div/div[2]/div/div/div[1]/div/span[1]/button"
    btn_compare_price = "xpath=>//*[@id='root']/div/div/div/div[2]/div/div/div[2]/div/div/div[2]/a"
    btn_continue_inquiry_yes = "xpath=>/html/body/div[3]/div/div[2]/div/div[2]/div/div/div[2]/button[2]"
    btn_continue_inquiry_no = "xpath=>/html/body/div[3]/div/div[2]/div/div[2]/div/div/div[2]/button[1]"
    btn_choose_agent = "xpath=>//input[@value='6206b642604142a2be08611980e83f98']"
    btn_publish_inquiry = "xpath=>/html/body/div[6]/div/div[2]/div/div[2]/div[3]/button[2]"
    btn_choose_agent_no = "xpath=>/html/body/div[2]/div/div[2]/div/div[2]/div[3]/button[1]"
    btn_remind = "xpath=>/html/body/div[3]/div/div[2]/div/div[2]/div/div/div[2]/button[1]"
    btn_requate = "xpath=>//*[@id='root']/div/div/div/div[2]/div/div/div[2]/div/div/div[2]/div/div[3]/div[1]/div[2]/div[3]/button[1]"
    btn_appoint_agent = "xpath=>//*[@id='root']/div/div/div/div[2]/div/div/div[2]/div/div/div[2]/div/div[3]/div[1]/div[2]/div[3]/button[2]"
    btn_requate_yes = "xpath=>/html/body/div[2]/div/div[2]/div/div[2]/div[2]/div/button[2]"
    btn_requate_no = "xpath=>/html/body/div[2]/div/div[2]/div/div[2]/div[2]/div/button[1]"
    btn_reason = "xpath=>/html/body/div[2]/div/div[2]/div/div[2]/div[1]"
    input_reason = "xpath=>/html/body/div[2]/div/div[2]/div/div[2]/div[1]/textarea"

<<<<<<< HEAD
    input_accountfor = "id=>instruction"
    input_email = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div/div/div/form/div[2]/div[2]/div/div[4]/div[2]/div/div/input"
    btn_submit = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div/div/div/form/div[3]/button"
    btn_confirm = "xpath=>/html/body/div[3]/div/div[2]/div/div[2]/div/div/div[2]/button"
    
=======
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb
    def click_chating(self):
        self.click(self.btn_chating)
        self.sleep(2)

    def click_chating_back(self):
        self.click(self.bt_chating_back)
        self.sleep(1)

    def click_compare_price(self):
        self.click(self.btn_compare_price)
        self.sleep(2)

    def click_continue_inquiry(self):
        self.click(self.btn_continue_inquiry)
        self.sleep(2)

    def click_continue_inquiry_yes(self):
        self.click(self.btn_continue_inquiry_yes)
        self.sleep(1)

    def click_continue_inquiry_no(self):
        self.click(self.btn_continue_inquiry_no)
        self.sleep(1)

    def click_choose_agent_no(self):
        self.click(self.btn_choose_agent_no)
        self.sleep(1)

    def click_choose_agent(self):
        self.click(self.btn_choose_agent)
        self.sleep(4)

    def click_publish_inquiry(self):
        self.click(self.btn_publish_inquiry)
        self.sleep(1)

    def click_remind(self):
        self.click(self.btn_remind)
        self.sleep(2)

    def click_requate(self):
        self.click(self.btn_requate)
        self.sleep(2)

    def click_appoint_agent(self):
        self.click(self.btn_appoint_agent)
        self.sleep(2)

    def click_reject_reason(self):
        self.click(self.btn_reason)
        self.sleep(2)

    def input_reject_reason(self,text):
        self.type(self.input_reason,text)
        self.sleep(2)

    def click_requate_yes(self):
        self.click(self.btn_requate_yes)
        self.sleep(2)

    def click_requate_no(self):
        self.click(self.btn_requate_no)
<<<<<<< HEAD
        self.sleep(2)

    def type_accountfor(self,text):
        self.type(self.input_accountfor,text)
        self.sleep(2)

    def type_email(self,text):
        self.type(self.input_email,text)
        self.sleep(2)

    def click_submit(self):
        self.click(self.btn_submit)
        self.sleep(2)

    def click_confirm(self):
        self.click(self.btn_confirm)
        self.sleep(2)


   
=======
        self.sleep(2)
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb
